<extend name="Public/base"/>
<block name="body">
    <form class="well form-inline " method="get" action="{:U('')}">

        <div class="form-group">


            <input type="text" class="input-mini" name="keyword" style="width:200px;" value="{$keyword}"
                   placeholder="昵称">
        </div>


        <select name="group">
            <option value=""> 分组</option>
            <volist name=":F('Group')" id="vo">

                <php>$selected=(I("get.group")==$vo["id"])?"selected":"";</php>
                <option value="{$vo.id}" {$selected}>{$vo.name}</option>
            </volist>
        </select>


        <div class="form-group">
            <button class="btn btn-xs btn-info" data-toggle="tooltip" title="搜索">
                <i class="icon-search bigger-110"></i>


            </button>
            <if condition="$search">
                <a data-toggle="tooltip" title="清除搜索项" href="{:U(index)}"
                   class="tooltip-danger btn btn-xs btn-danger"><i class="icon-remove bigger-110"></i></a></if>
        </div>

    </form>


    <form method="post" class="form-horizontal J_ajaxForm" action="{:U('')}">
        <div class="table_list">
            <table width="100%" cellspacing="0" class="table table-hover">
                <thead>
                <tr>
                    <th width="30">ID</th>
                    <th align="left">昵称</th>
                    <th align="left">电话</th>
                    <th align="left">钱包</th>
                    <th align="left">钱包</th>
                    <th align="left">会员组</th>
                    <th align="left">微信</th>


                    <th align="left">状态</th>
                    <th width="200">管理操作</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="_list" item="vo">

                    <td>{$vo.id}</td>
                    <td>{$vo.nickname}</td>
                    <td>{$vo.tel}</td>

                    <td>{$vo.money|default="0"}</td>
                    <td>{$vo.jiangjin|default="0"}</td>
                    <td>{:F("Group")[$vo["group"]][name]}</td>
                    <td>

                        <if condition="$vo[open_id]">
                            <a data-trigger="modal" data-title="查看"  href='{:U("Index/wx_info",array("open_id"=>$vo["open_id"]))}'>查看</a>
                            <else/>
                            未绑定
                        </if>

                    </td>

                    <td>
                        <if condition="$vo[status] eq 1">
                            <a href="{:U(" changestatus",array("id"=>$vo['id']))}" class="ajax-switch"> <i
                                class="icon-check-circle"></i></a>
                            <else/>
                            <a href="{:U(" changestatus",array("id"=>$vo['id']))}" class="ajax-switch"><i
                                class="icon-times-circle"></i></a>
                        </if>
                    </td>

                    <td class="text-c">
                        <a href="{:U('chongzhi',array('id'=>$vo['id']))}">充值</a> |
                        <!--<if condition="$vo['money']">-->
                            <!--<a href="{:U('xiaofei',array('id'=>$vo['id']))}">消费</a> |-->
                        <!--</if>-->

                        <a href="{:U('edit',array('id'=>$vo['id']))}">修改</a> | <a class="ajax-del"
                                                                                  href="{:U('delete',array('id'=>$vo['id']))}">删除</a>
                        </if>
                    </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
        </div>
        <div class="pagination" style="margin:auto; display:block">{$Page}</div>
    </form>


</block>




